/**
 * Created by crystal on 2016/12/3.
 */

$(document).ready(function () {
    $(".admin_form1").hide();
    $(".admin_form2").hide();

    var hash = window.location.hash;
    console.log(hash);

    if(hash == "#form1" || hash == ""){
        showOne();
    }else if (hash == "#form2") {
        showTwo();
    }
});

function showOne() {
    $(".admin_form1").show();
    $(".admin_form2").hide();
}

function showTwo() {
    $(".admin_form2").show();
    $(".admin_form1").hide();
}
 